package com.joe.other;

public class ExceptionTest {


    public static void main(String[] args) {
        System.out.println(test());
    }

    public static int test(){
        int i=0;
        try {
            i++;
            System.out.println("try.i=" + i);
            return p();
        } catch (Exception e) {
            i++;
            System.out.println("catch.i=" + i);
            return 3;
        } finally {
            i++;
            System.out.println("finally.i=" + i);
//            return 5;
        }
    }

    private static int p(){
        return 3;
    }

}
